package com.codemart.lanze.modules.sys.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codemart.lanze.common.base.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: 角色权限中间表
 * @author: lanze
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tb_role_permission", resultMap = "BaseResultMap")
public class RolePermission extends BaseEntity<RolePermission> {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	private Long roleId;

	private Long permissionId;

	@Override
	protected Serializable pkVal() {
		return getId();
	}
}
